<template>
  <NDialogProvider>
    <Dialog />
    <NNotificationProvider>
      <NMessageProvider>
        <Message />
        <slot></slot>
      </NMessageProvider>
    </NNotificationProvider>
  </NDialogProvider>
</template>
<script lang="ts">
// import { defineComponent } from 'vue';
import { defineComponent } from '@vue/composition-api'
import Dialog from './Dialog.vue'
import Message from './Message.vue'

export default defineComponent({
  name: 'AppProvider',
  components: {
    Message,
    Dialog
  },
  inheritAttrs: false,
  props: {},
  setup() {
    // 配置
    return {}
  }
})
</script>
